const _import = require('../utils/view-import/' + process.env.NODE_ENV)

export default {
  routes: [
    {
      path: '/test',
      component: _import('test')
    },
    {
      path: '/',
      component: _import('layout'),
      children: [
        {
          path: '/',
          name: '首页',
          component: _import('index')
        },
        {
          path: '/result/:keyword',
          name: '结果',
          component: _import('result')
        }
      ]
    },
    {
      path: '*',
      component: _import('404')
    }
  ]
}
